#!/bin/bash
cp data.txt `date +%Y%m%d%H%M%S`_log.txt
nc 10.9.57.2 5505 > log.txt
head -n -1 log.txt > data.txt
